import React from 'react';
import { connect } from 'react-redux';
import { HashRouter as Router } from 'react-router-dom';

import { IRootState } from 'shared/reducers';
import AppRoutes from './routes';
// import styles from './app.module.less';

export interface IAppProps extends StateProps, DispatchProps {}

const App: React.FC<IAppProps> = (props) => (
  <Router>
    <AppRoutes />
  </Router>
);
const mapStateToProps = (state:IRootState) => ({

});
const mapDispatchToProps = {};

type StateProps = ReturnType<typeof mapStateToProps>;
type DispatchProps = typeof mapDispatchToProps;

export default connect(
  mapStateToProps,
  mapDispatchToProps,
)(App);
